import { defineStore} from 'pinia'

export const useCounterStore =  defineStore('counter',{
  state(){
    return{
      count:1
    }
  },
  getters:{
    doubleCount(state){
      console.log(state);
      return state.count * 2
    }
  },
  actions:{
    inc(){
      console.log(this);
      this.count++
    }
  }
})
